package com.heima.user.controller.v1;

import com.heima.model.article.pojo.ApAuthor;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dto.UserRelationDto;
import com.heima.user.service.ApUserRelationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author TheCai
 * @date 2021/6/4 17:36
 **/
@RestController
@RequestMapping("/api/v1/user")
public class UserRelationController {
    @Autowired
    private ApUserRelationService apUserRelationService;
    @ApiOperation("用户关注/取消关注")
    @PostMapping("/user_follow")
    public ResponseResult follow(@RequestBody UserRelationDto dto){
        return apUserRelationService.follow(dto);
    }

}